/**
 * 
 */
package com.thor.palmmall.spi.tenant;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.palmmall.spi.common.SOperateInfo;
import com.thor.palmmall.spi.common.SQueryResult;
import com.thor.palmmall.spi.common.SResponse;
import com.thor.palmmall.spi.common.SUserGroupLoadParam;
import com.thor.palmmall.spi.communicate.SCommunicate;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path(value = "/1/tenant")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface STenantService {

  @POST
  @Path(value = "/query")
  public SResponse<SQueryResult<STenant>> query(STenantQueryParam queryParam);

  @POST
  @Path(value = "/{id}")
  public SResponse<STenant> get(@PathParam("id") String id, SUserGroupLoadParam queryParam);

  @POST
  @Path(value = "/save")
  public SResponse<String> save(STenant tenant, @QueryParam("") SOperateInfo operateInfo);

}
